package chat

// GPT-4o
// Claude-3.5
// Llama3.1

// Qwen2.5
// DeepSeek V2.5
// DeepSeek V3

const (
	ChatTypeOpenai           = 1
	ChatTypeOpenaiAzure      = 2
	ChatTypeOpenaiCloudflare = 3

	ChatTypeAnthropic = 11 // claude
	ChatTypeGoogle    = 12 // claude

	ChatTypeAlibaba = 51
	ChatTypeBaidu   = 52
	ChatTypeTencent = 53
	ChatTypeHuawei  = 54
	ChatTypeMi      = 55

	ChatTypeIfly     = 61
	ChatTypeChatglm  = 62
	ChatTypeMoonshot = 63

	ChatTypeDeepseek = 71 // BioMap 百图生科 https://www.deepseek.com
)

const (
	deepseekChatApiKey = "sk-a63def02cd59463ea4f7245b8a6b03e6"
	deepseekChatApiUrl = "https://api.deepseek.com/chat/completions/"
)

const (
	deepseekChatMessageRoleSystem = "system"
	deepseekChatMessageRoleUser   = "user"
)

func NewCredentialOpenai(endpoint, secretKey, organization string) Credential {
	return Credential{
		Endpoint:     endpoint,
		SecretKey:    secretKey,
		Organization: organization,
	}
}
func NewCredentialMicrosoft(endpoint, secretKey, apiVersion string) Credential {
	return Credential{
		Endpoint:   endpoint,
		SecretKey:  secretKey,
		ApiVersion: apiVersion,
	}
}

type Credential struct {
	Endpoint     string
	SecretKey    string // 公用
	Organization string // 组织
	ApiVersion   string
}
